package com.memory.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.memory.common.model.entity.Post;
import org.apache.ibatis.annotations.Mapper;

/**
 * 帖子数据库操作
 *
 * @author <a href="https://gitee.com/deng-2022">回忆如初</a>
 * @from <a href="https://deng-2022.gitee.io/blog/">Memory's Blog</a>
 */
@Mapper
public interface PostMapper extends BaseMapper<Post> {
    /**
     * 返回随机名言
     *
     * @param type 类型
     * @return 随机名言
     */
    Post getRandomPost();
}




